package epam.car.rent.exceptions;

public class NoSuchCarException extends Exception {

	private static final long serialVersionUID = 8648148575899397444L;
	String error;
	
	public NoSuchCarException(){
		super("There's no such car!");
		error = "NoSuchCarException\t" + "There's no such car!";
		ExceptionLogger.log.warn(error);
	}
	public NoSuchCarException(String message){
		super("There's no such car!");
		error = "NoSuchCarException\t" + message;
		ExceptionLogger.log.warn(error);
	}
	public NoSuchCarException(String message, Exception e){
		super("There's no such car!");
		error = "NoSuchCarException\t" + message + "\t" + e.getMessage();
		ExceptionLogger.log.warn(error);
	}
}
